<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% load static %}
    <link rel="stylesheet" type="text/css" href="{% static 'css/index.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'layer/theme/default/layer.css' %}"/>
    <script src="{% static 'js/jquery-3.2.1.min.js' %}"></script>
    <script src="{% static 'js/axios.min.js' %}"></script>
    <script src="{% static 'js/vue.global.js' %}"></script>
    <script src="{% static 'layer/layer.js' %}"></script>

    {% block js %}


    {% endblock %}
    <title>
        {% block title %}


        {% endblock %}
    </title>

</head>
<body>
<header>
    <div class="lf">
        <a class="home" href="{% url 'index' %}">系统首页</a>
        {% if user.is_authenticated %}
            <a href="{% url 'res:upload_res' %}">上传资料</a>
        {% endif %}
    </div>
    <div id="search">
        <input type="text" name="name"
               placeholder="请输入要搜索的资源" autocomplete="off"/><a class="search btn">搜索</a>
    </div>

    <div class="rf">

        {% if user.is_authenticated %}
            <div class="email-info">
                <b>99</b>
                <ul class="email-list">
                    <li><a href="./message.html">官方<b>0</b></a></li>
                    <li><a href="./message.html">通知<b>0</b></a></li>
                    <li><a href="./message.html">私信<b>0</b></a></li>
                </ul>
            </div>
        {% endif %}

        {% if user.is_authenticated %}
            <a class="info" href="{% url 'user:personal' %}">个人中心</a>
            <a class="cols" href="{% url 'res:collect_list' %}">收藏</a>
            <a class="exit" href="{% url 'logout' %}">退出登录</a>
        {% endif %}

        {% if user.is_anonymous %}
            <a href="{% url 'login' %}">登录/注册</a>
        {% endif %}

    </div>
</header>
{% block other %}


{% endblock %}


<article>
    {% block main %}


    {% endblock %}

</article>


<footer>
    <p class="decro">本站所有资源信息均由网友上传,本站只是为了推广资源让更多读者下载,使用。如涉侵权，请联系管理员</p>
    <p class="cr">Copyright © 2021-2025 <span class="site">爱下载资源分享平台</span> All Rights Reserved.</p>
    <p class="num">沪ICP备14048333号</p>
</footer>



{% block vue %}


{% endblock %}


</body>

</html>